<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
<body>
<div id="all" style="border:3px solid #F00;height:1183px;width:1000px;margin:0 auto;" >
	<div id="top" style="width:960px;background-color:#FFF;">
    	<div id="logo" >
    		<img alt="公司LOGO" src="img/logo.jpg" width="1000px" />
    	</div>
        <div id="navi" style="width:1000;background-color:#CC0005;height:40px;float:left;">
        	<ul style="width:960px;">
            	<li style="display:inline;margin-left:120px;"><a href="index.jsp" style="color:#FFF;font-weight:bold;">首页</a></li>
            	
                <li style="display:inline;margin-left:50px;color:#FFF;background-color:#999"><a style="color:#FFF;font-weight:bold;font-size:14px;">已登陆</a> 
        </div>
    </div> 
    <div id="center" style="height:600px;text-align:center;margin-top:150px">
    	<div style="width:250px;height:100px;margin-top:-100px;margin-left:100px">
    		<img src="img/usertest.png" width="70px" height="70px" style="display:block;float:left;" />
						
    		<h5 style="display:block;float:left;">欢迎您：
</h5>
    	</div>
    	<div style="width:170px;margin-left:auto;margin-right:auto;margin-top:-40px;">
    		<h1 style="margin-bottom:20px;">我的请假条</h1>
    		<a href="addleave.jsp" style="font-size:large;">我要请假</a>
    	</div>
    	
		<div id="part" style="width:1000px;height:500px;float:left;">
			<c:forEach items="${stunotes}" var="n"> 
				<div id="one" style="width:800px;height:83px;border:3px solid #FF0000;margin-left:auto;margin-right:auto;margin-top:20px">
					<div id="item" style="width:600px;height:83px;border: 1px solid #FF0000">
						<h5 style="margin-left:-350px;margin-top:3px">请假日期：${n.itime}</h5>
						<h5 style="margin-right:510px;margin-top:-8px">请假天数：${n.lday}</h5>
						<h5 style="margin-left:200px;margin-top:-65px">当前处理人：${n.lnow}</h5>
						<h5 style="margin-left:200px;margin-top:-8px">下位处理人：${n.lnext}</h5>
						<h5 style="margin-left:-480px;margin-top:-8px">请假原因：${n.ldetail}</h5>
					</div>
					<c:if test="${n.lstate!=0}">
					<div id="btn" style="width:200px;height:50px;float:right;margin-top:-52px">
						<a href="springmvc/leave/agree?lid=${n.lid }" style="">提交</a>&nbsp&nbsp
						<a href="springmvc/leave/del?lid=${n.lid}" style=""s>取消</a>
					</div>
					</c:if>
					<c:if test="${n.lstate==0}">
						<div id="nobtn" style="width:200px;height:50px;float:right;margin-top:-65px">
						<h3 style="">未通过</h3>
						</div>
					</c:if>
				</div>
			</c:forEach>
	
		</div>
		
    </div> 
    
    <div id="bottom" style="margin-top:150px;">
    	<img alt="页面底部" src="img/bottom.jpg" width="1000px" height="50px"/>
    </div>
    <h5 style="text-align:center;color:#666;">版权所属  解释权归我所有  隐私保护</h5>
    <h5 style="text-align:center;color:#666;">联系电话：不告诉你  意见邮箱：你不会有意见可提，所以没有</h5>
</div>
</body>
</html>

